<template>
  <div class="tell">
    <span>{{ tellNumber }}</span>
    <button @click="closebtn">我知道了</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isClose: false,
    };
  },
  props: {
    tellNumber: {
      type: Number,
      default: 0,
    },
  },
  methods: {
    closebtn() {
      this.$emit("isCloseBtn", this.isClose);
    },
  },
};
</script>

<style lang="less" scoped>
.tell {
  padding: 0 30px 10px;
  span {
    display: block;
    padding-bottom: 4px;
    width: 100%;
    border-bottom: 1px solid #ccc;
  }
  button {
    width: 100%;
    height: 40px;
    color: #fff;
    background-color: #44a2ff;
    margin-top: 20px;
    border-radius: 4px;
  }
}
</style>
